package cn.xz.mxxz.dialog

import android.view.Gravity
import android.view.ViewGroup
import cn.xz.mxxz.R
import cn.xz.mxxz.base.BaseDialogRxFragment

/**
 * 加载框
 * */
class ProgressDialog: BaseDialogRxFragment() {


    companion object {
        fun newInstance(
        ): ProgressDialog {
            return ProgressDialog()
        }
    }

    override fun getLayoutId(): Int {
        return R.layout.dialog_progress
    }

    override fun configDialog() {
        this.setDialogSize(gravity = Gravity.CENTER,width = ViewGroup.LayoutParams.WRAP_CONTENT)
    }

    override fun initViews() {

        dialog?.let {
            //ivDialogFinish = it.findViewById(R.id.iv_dialog_finish)
        }

        //点击外部不隐藏
        dialog?.setCancelable(false)
        dialog?.setCanceledOnTouchOutside(false)
        //视图
        initUI()
        //点击事件
        initEvent()
    }

    private fun initUI() {

    }

    private fun initEvent(){

    }

    override fun onDestroy() {
        super.onDestroy()
    }


}